<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
<h:head>
    <title>List of the users</title>
</h:head>
<h:body>
    <h1>List of the users</h1>
    <hr/>
    <h:dataTable value="#{userController.bookList}" var="us" border="1">
        <h:column>
            <f:facet name="header">
                <h:outputText value="ID"/>
            </f:facet>
            <h:outputText value="#{us.id}"/>
        </h:column>

        <h:column>
            <f:facet name="header">
                <h:outputText value="Access level"/>
            </f:facet>
            <h:outputText value="#{us.accesslevel}"/>
        </h:column>

        <h:column>
            <f:facet name="header">
                <h:outputText value="First Name"/>
            </f:facet>
            <h:outputText value="#{us.firstname}"/>
        </h:column>

        <h:column>
            <f:facet name="header">
                <h:outputText value="Surename"/>
            </f:facet>
            <h:outputText value="#{us.surname}"/>
        </h:column>

        
    </h:dataTable>
    <h:form>
        <h:link outcome="newUser.xhtml" value="Create a new user"/>
    </h:form>
    <hr/>
    <i>Slav Pilus @ 2011</i>
</h:body>
</html>
